From: Camila Ayres Date: Tue, 18 Feb 2025 14:50:29 +0000 (+0100) Subject: Add {} to single line if. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~51^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=ef2157e315380457e2278ac5d12ffd13820c5299;p=nextcloud-desktop.git Add {} to single line if. Signed-off-by: Camila Ayres --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index c73bb0368..12ceca25a 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1521,8 +1521,9 @@ void Folder::slotFolderConflicts(const QString &folder, const QStringList &confl void Folder::warnOnNewExcludedItem(const SyncJournalFileRecord &record, const QStringView &path) { // Never warn for items in the database - if (record.isValid()) + if (record.isValid()) { return; + } // Don't warn for items that no longer exist. // Note: This assumes we're getting file watcher notifications @@ -1530,15 +1531,18 @@ void Folder::warnOnNewExcludedItem(const SyncJournalFileRecord &record, const QS // on content change that would create spurious warnings. const auto fullPath = QString{_canonicalLocalPath + path}; QFileInfo fi(fullPath); - if (!FileSystem::fileExists(fullPath)) + if (!FileSystem::fileExists(fullPath)) { return; + } bool ok = false; auto blacklist = _journal.getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, &ok); - if (!ok) + if (!ok) { return; - if (!blacklist.contains(path + "/")) + } + if (!blacklist.contains(path + "/")) { return; + } const auto message = FileSystem::isDir(fullPath) ? tr("The folder %1 was created but was excluded from synchronization previously. "